package tk.mybatis.simple.model;

import java.util.*;

public class Person {
	private int id;
	private String name;
	private int age;
	private boolean adult;
	private Date creationTime;
	private Integer countryId;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public boolean isAdult() {
		return adult;
	}
	public void setAdult(boolean adult) {
		this.adult = adult;
	}
	public Date getCreationTime() {
		return creationTime;
	}
	public void setCreationTime(Date creationTime) {
		this.creationTime = creationTime;
	}

	public Integer getCountryId() {
		return countryId;
	}

	public void setCountryId(Integer countryId) {
		this.countryId = countryId;
	}

	@Override
	public String toString() {
		return String.format("Id=%s,Name=%s,Age=%s,Adult=%s,CreationTime=%s", id,name,age,adult,creationTime);
	}
	
}
